// timing.cpp
//

#include "timing.h"

namespace simple_test{
    ElapsedTime::ElapsedTime () : _starting (0)
    {
        reset ();
    }


    double ElapsedTime::sec () const
    {
        clock_t current = clock ();
        return ((double)(current - _starting) / CLOCKS_PER_SEC);
    }


    void ElapsedTime::reset ()
    {
        _starting = clock ();
    }
}